pmtools-perl6: PODs to Start With

Mark Leighton Fisher on 2006-11-10T18:00:01

It looks like the lowest-hanging fruit for pmtools-perl6 to pluck is the various lists of PODs (basepods, stdpods, etc.) As Pugs does not have a Config module yet, I've been working on a Perl6 program to convert CORE::Pugs::Config into a Perl6 module.

There is a bugbear, though – I haven't been able to configure my PC to use regexes on Win32. Under cygwin, Parrot fails to initialize. Using a BAT file to start Pugs, I only get a little further:

pugs> rule jfk { kennedy };
pugs> "abc" ~~ //;
Error eval perl5: "if (!$INC{'Pugs/Runtime/Match/HsBridge.pm'}) {
    unshift @INC, 'C:\Perl6\site\lib/auto/pugs/perl5/lib';
    eval q[require 'Pugs/Runtime/Match/HsBridge.pm'] or die $@;
}
'Pugs::Runtime::Match::HsBridge'
"
*** Can't locate Pugs/Runtime/Match/HsBridge.pm in @INC (@INC contains: C:\Perl6\site\lib/auto/pugs/perl5/lib C:/Perl/site/lib C:/Perl/lib .) at (eval 3) line 1.

*** Cannot parse regex: *** Error: Error: Can't call method "__RUN__" on an undefined value.
I'm sure I'm doing something stupid – I'm just not sure which stupid thing I'm doing. If anyone has any hints, please let me know. (Do I need a "use v6-alpha"?)


Are you using Jonathan's bindist?

audreyt on 2006-11-11T11:23:49

Try a repository check out from http://svn.pugscode.org/pugs/ and "perl Makefile.PL ; nmake ; nmake install" should fix this problem. If you'd like to get something working quickly, copy perl5/Pugs-Compiler-Rule/lib/* into C:\Perl6\site\lib/auto/pugs/perl5/lib/.

Also maybe mail the bindist packager that C:\Perl6\site\lib/auto/pugs/perl5/lib really needs to be packaged in the .zip file...